import { Modal, ModalProps } from "antd"
import { FC } from "react"

const fullscreenClass = "modal-wrap-fullscreen"
const CustomModal: FC<ModalProps & { fullScreen?: boolean }> = (props) => {
  return (
    <Modal
      {...props}
      title={
        <>
          {props.title}
        </>
      }
      className={props.fullScreen ? `${props.className} ${fullscreenClass} ${fullscreenClass}--has-header` : props.className}
    />
  )
}

export { CustomModal as Modal }
